package com.amos.muexamcore.core;

import com.amos.core.BaseEntity;

import java.lang.annotation.*;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamcore.core
 * @ClassName MuEntity
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020/3/10 22:56
 * @Version 1.0
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE,ElementType.FIELD})
@Documented
public @interface MuEntity {
    /**
     * 对应的表名
     * @return
     */
    String table() default "";

    /**
     * 对应的Entity
     * @return
     */
    Class<?> entity() default BaseEntity.class;
}
